.class public Lcom/waiqin365/base/print/a/a/d;
.super Lcom/waiqin365/base/print/a/d;


# instance fields
.field public d:Ljava/lang/String;

.field public e:Ljava/lang/String;

.field public f:Lcom/waiqin365/base/print/b/c;


# direct methods
.method public constructor <init>()V
    .locals 1

    const/16 v0, 0xca

    invoke-direct {p0, v0}, Lcom/waiqin365/base/print/a/d;-><init>(I)V

    return-void
.end method


# virtual methods
.method public a(Ljava/lang/String;)Z
    .locals 4

    :try_start_0
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0, p1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    const-string/jumbo v1, "code"

    const-string/jumbo v2, ""

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/waiqin365/base/print/a/a/d;->d:Ljava/lang/String;

    const-string/jumbo v1, "message"

    const-string/jumbo v2, ""

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/waiqin365/base/print/a/a/d;->e:Ljava/lang/String;

    new-instance v1, Lcom/waiqin365/base/print/b/c;

    invoke-direct {v1}, Lcom/waiqin365/base/print/b/c;-><init>()V

    iput-object v1, p0, Lcom/waiqin365/base/print/a/a/d;->f:Lcom/waiqin365/base/print/b/c;

    const-string/jumbo v1, "data"

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/base/print/a/a/d;->f:Lcom/waiqin365/base/print/b/c;

    const-string/jumbo v2, "title"

    const-string/jumbo v3, ""

    invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/waiqin365/base/print/b/c;->a:Ljava/lang/String;

    iget-object v1, p0, Lcom/waiqin365/base/print/a/a/d;->f:Lcom/waiqin365/base/print/b/c;

    const-string/jumbo v2, "footer"

    const-string/jumbo v3, ""

    invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/waiqin365/base/print/b/c;->b:Ljava/lang/String;

    iget-object v1, p0, Lcom/waiqin365/base/print/a/a/d;->f:Lcom/waiqin365/base/print/b/c;

    const-string/jumbo v2, "width"

    const-string/jumbo v3, ""

    invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/waiqin365/base/print/b/c;->c:Ljava/lang/String;

    iget-object v1, p0, Lcom/waiqin365/base/print/a/a/d;->f:Lcom/waiqin365/base/print/b/c;

    const-string/jumbo v2, "field_codes"

    const-string/jumbo v3, ""

    invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/waiqin365/base/print/b/c;->d:Ljava/lang/String;

    iget-object v1, p0, Lcom/waiqin365/base/print/a/a/d;->f:Lcom/waiqin365/base/print/b/c;

    const-string/jumbo v2, "function_type"

    const-string/jumbo v3, ""

    invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, v1, Lcom/waiqin365/base/print/b/c;->e:Ljava/lang/String;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :catch_0
    move-exception v0

    const/4 v0, 0x0

    goto :goto_0
.end method
